package com.jdz.gxq.info.admin.project.service;

import java.util.List;
import java.util.Map;

import com.jdz.gxq.info.admin.project.bo.TalkingProject;

public interface TalkingProjectService {
	
	/**
	 * TalkingProject检索分页用，查询记录条数
	 * @return
	 */
	public int getTalkingProjectsCount(String projectName);
	
	/**
	 * TalkingProject检索
	 * @return
	 */
	public List<TalkingProject> getTalkingProjects(Map<String, Object> params);
	
	/**
	 * 追加TalkingProject
	 * @param talkingProject
	 */
	public void insertTalkingProject(TalkingProject talkingProject);
	
	/**
	 * 更新TalkingProject
	 * @param talkingProject
	 */
	public void updateTalkingProject(TalkingProject talkingProject);
	
	/**
	 * 通过id得到talkingProject
	 * @param id
	 * @return
	 */
	public TalkingProject getTalkingProjectById(int projectId);
	
	/**
	 * 删除TalkingProject
	 * @param talkingProject
	 */
	public void deleteTalkingProject(int projectId);
	
	/**
	 * 验证talkingProjectName是否重复
	 * (重复返回:false)
	 * flag: 1 追加时验证
	 * flag: 2 更新时验证
	 */
	public boolean checkTalkingProjectName(TalkingProject paramTalkingProject, int flag);

}
